/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 获取 POST /sys/setting/getData */
export async function sysSettingGetDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RSysSettingVo>('/sys/setting/getData', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 修改配置信息 POST /sys/setting/updateData */
export async function sysSettingUpdateDataUsingPost({
  body,
  options,
}: {
  body: API.SysSettingBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/sys/setting/updateData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
